import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}
export function userList(query) {
  return request({
    url: '/user/user_list',
    method: 'get',
    params: query
  })
}
export function updateUser(data) {
  return request({
    url: '/user/edit',
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
